package com.hutu.erp.catalog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品参数对象 catalog_specification_option
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class SpecificationOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品参数可选值id */
    private Long optionId;

    /** 商品参数id */
    @Excel(name = "商品参数id")
    private Long specificationId;

    /** 商品参数可选值名称 */
    @Excel(name = "商品参数可选值名称")
    private String optionName;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private Integer deleted;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long displayOrder;

    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setSpecificationId(Long specificationId) 
    {
        this.specificationId = specificationId;
    }

    public Long getSpecificationId() 
    {
        return specificationId;
    }
    public void setOptionName(String optionName) 
    {
        this.optionName = optionName;
    }

    public String getOptionName() 
    {
        return optionName;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDisplayOrder(Long displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder() 
    {
        return displayOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("specificationId", getSpecificationId())
            .append("optionName", getOptionName())
            .append("deleted", getDeleted())
            .append("displayOrder", getDisplayOrder())
            .toString();
    }
}
